/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-25
 * Time: 20:49
 */
// 实现类：鸭子同时实现 Flyable 和 Swimmable
class Duck implements Flyable, ISwimmable {
    @Override
    public void fly() {
        System.out.println("鸭子正在飞...");
    }

    @Override
    public void swim() {
        System.out.println("鸭子正在游泳...");
    }
}